using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using OTE.Domain;

namespace OTE.Infrastructure.NHibernateMaps
{
    public class QuestionMap : IAutoMappingOverride<Question>
    {
        public void Override(AutoMapping<Question> mapping)
        {
            mapping.Table("[dbo].[Question]");

            mapping.Id(x => x.Id, "Id");

            mapping.References(x => x.User, "UserId");

            mapping.References(x => x.Category, "CategoryId");
        }
    }
}